﻿using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using weikebuluo.DAL;
using weikebuluo.Model;
using weikebuluo.Common;

namespace weikebuluo.web.admin.actives
{
    public partial class dzploglist : weikeweixin.web.admin.cs.adminbase
    {
        h_dzplog_dal dzplogdal = new h_dzplog_dal();
        JsonOperate JsonOperate = new JsonOperate();
        protected void Page_Load(object sender, EventArgs e)
        {
            switch (Request.QueryString["action"])
            {
                case "list":
                    list();
                    break;
            }
        }
        /// <summary>
        ///查询
        /// </summary>
        public void list()
        {
            string where = "dzp_id=" + Request.QueryString["id"] + "and dzplog_stutas=1";
            int Page = int.Parse(Request.Form["page"]);
            int RecordCount = dzplogdal.GetRecordCount(where);
            DataTable dtdzplog = dzplogdal.GetListByPage(where, "", ((Page - 1) * 15) + 1, (Page - 1) * 15 + 15).Tables[0];
            Response.Write(JsonOperate.GetDataGridJson(dtdzplog, RecordCount));
            Response.End();
        }
    }
}